<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Vantop-SBA-下载地址</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="<%=path%>/js/jquery-1.8.0.min.js" type="text/javascript"
	charset="utf-8"></script>
<style> 
.body{text-align:center} 
</style> 

</head>
<body align='center'>
	<br />
	<br />
	<!-- <a  style="font-size:15px;" href="javascript:download();">下载</a> -->
	<br />
	<br />
	<span style="font-size:16px;"> 微信 IOS 用户安装方法：</span>
	<br />
	<br />
	 <span style="font-size:14px;"> 1. 点击右上角菜单</span>
	<br />
	<br />
	 <span style="font-size:14px;"> 2. 选择浏览器打开</span>
	<br />
	<br />
	

	<script type="text/javascript">
        var path="<%=path%>";
		 $(function() {
			var u = navigator.userAgent, app = navigator.appVersion;
			var isAndroid = u.indexOf('Android') > -1
					|| u.indexOf('Linux') > -1; //android终端或者uc浏览器
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
			if (isiOS) {
				window.location.href = "itms-services://?action=download-manifest&url=https://raw.githubusercontent.com/superman010/vantop-sba/master/src/main/webapp/vantop.plist";
			} else {
				//window.location.href = path + "/apk/download.do?ostype=android";
				window.location.href = "http://123.58.230.241:6001/android/vantop_5_SBA.apk";
			}

		}); 
		/*function download() {
			var u = navigator.userAgent, app = navigator.appVersion;
			var isAndroid = u.indexOf('Android') > -1
					|| u.indexOf('Linux') > -1; //android终端或者uc浏览器
			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
			var type = "";
			if (isiOS) {
				window.location.href = "itms-services://?action=download-manifest&url=https://git.oschina.net/chenglu/vantop-sba-web/raw/master/src/main/webapp/files/vantop.plist?dir=0&filepath=src/main/webapp/files/vantop.plist&oid=723ef958e469cf69a71db755ed8f45327e7dc85a&sha=d30d9675a2b5080b37d8da35da258abec4a8afc3";
			} else {
				window.location.href = path + "/apk/download.do?ostype=android";
			}
		}*/
	</script>
</body>
</html>